package cn.edu.hbsi.domain;

import java.util.List;

public class Orders
{
    private Integer oId;
    private String oNumber;
    private List<Product> products;

    public Orders() {
    }

    public Orders(String oNumber) {
        this.oNumber = oNumber;
    }

    public Orders(String oNumber, List<Product> products) {
        this.oNumber = oNumber;
        this.products = products;
    }

    public Orders(Integer oId, String oNumber) {
        this.oId = oId;
        this.oNumber = oNumber;
    }

    public Orders(Integer oId, String oNumber, List<Product> products) {
        this.oId = oId;
        this.oNumber = oNumber;
        this.products = products;
    }

    public Integer getoId() {
        return oId;
    }

    public void setoId(Integer oId) {
        this.oId = oId;
    }

    public String getoNumber() {
        return oNumber;
    }

    public void setoNumber(String oNumber) {
        this.oNumber = oNumber;
    }

    public List<Product> getProducts() {
        return products;
    }

    public void setProducts(List<Product> products) {
        this.products = products;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "oId=" + oId +
                ", oNumber='" + oNumber + '\'' +
                ", products=" + products +
                '}';
    }
}
